Skip to content

Commit e5c23bb

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master'
2 parents f76d199 + 69d2c0a commit e5c23bb

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
workflow_dispatch:
55
inputs:
66
releaseVersion:
7-
description: "Version to release"
7+
description: "Version to release (i.e., 1.3.2)"
88
required: true
99
snapshotVersion:
10-
description: "Snapshot version after release"
10+
description: "Snapshot version after release (i.e., 1.3.3-SNAPSHOT)"
1111
required: true
1212

1313
jobs:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ Changelog
22
========================================
33
Since tools.analyzer.jvm version are usually cut simultaneously with a tools.analyzer version, check also the tools.analyzer [CHANGELOG](https://github.com/clojure/tools.analyzer/blob/master/CHANGELOG.md) for changes on the corresponding version, since changes in that library will reflect on this one.
44
- - -
5+
* Release 1.3.2 on 17 Jan 2025
6+
* Removed reflection warnings on internal use of Character/isDigit
7+
* Release 1.3.1 on 2 Dec 2024
8+
* Added support for Clojure 1.12 array class syntax
59
* Release 1.3.0 on 19 Feb 2024
610
* Bumped deps on parent pom, tools.analyzer, core.memoize, tools.reader
711
* Release 1.2.3 on 26 Nov 2022

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ YourKit is kindly supporting open source projects with its full-featured Java Pr
119119
Releases and Dependency Information
120120
========================================
121121

122-
Latest stable release: 1.3.0
122+
Latest stable release: 1.3.2
123123

124124
* [All Released Versions](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22tools.analyzer.jvm%22)
125125
* [Development Snapshot Versions](https://oss.sonatype.org/index.html#nexus-search;gav%7Eorg.clojure%7Etools.analyzer.jvm%7E%7E%7E)
126126

127127
[Leiningen](https://github.com/technomancy/leiningen) dependency information:
128128

129129
```clojure
130-
[org.clojure/tools.analyzer.jvm "1.3.0"]
130+
[org.clojure/tools.analyzer.jvm "1.3.2"]
131131
```
132132

133133
[Maven](https://maven.apache.org/) dependency information:
@@ -136,7 +136,7 @@ Latest stable release: 1.3.0
136136
<dependency>
137137
<groupId>org.clojure</groupId>
138138
<artifactId>tools.analyzer.jvm</artifactId>
139-
<version>1.3.0</version>
139+
<version>1.3.2</version>
140140
</dependency>
141141
```
142142

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<artifactId>tools.analyzer.jvm</artifactId>
5-
<version>1.3.2-SNAPSHOT</version>
5+
<version>1.3.3-SNAPSHOT</version>
66
<name>tools.analyzer.jvm</name>
77
<description>Additional jvm-specific passes for tools.analyzer</description>
88

src/main/clojure/clojure/tools/analyzer/jvm.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
(:import (clojure.lang IObj RT Compiler Var)
4949
java.net.URL))
5050

51+
(set! *warn-on-reflection* true)
52+
5153
(def ns-safe-macro
5254
"Clojure macros that are known to not alter namespaces"
5355
#{#'clojure.core/->
@@ -128,7 +130,7 @@
128130
(maybe-class-literal sym-ns))] ;; Class/field
129131
(let [opname (name form)]
130132
(if (and (= (count opname) 1)
131-
(Character/isDigit (first opname)))
133+
(Character/isDigit (char (first opname))))
132134
form ;; Array/<n>
133135
(with-meta (list '. target (symbol (str "-" opname))) ;; transform to (. Class -field)
134136
(meta form))))

src/main/clojure/clojure/tools/analyzer/jvm/utils.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
(:import (clojure.lang RT Symbol Var)
1717
org.objectweb.asm.Type))
1818

19+
(set! *warn-on-reflection* true)
20+
1921
(defn ^:private type-reflect
2022
[typeref & options]
2123
(apply reflect/type-reflect typeref
@@ -96,7 +98,7 @@
9698
(defn maybe-array-class-sym [x]
9799
(let [sname (name x)]
98100
(if-let [c (and (= (count sname) 1)
99-
(Character/isDigit (first sname))
101+
(Character/isDigit (char (first sname)))
100102
(namespace x))]
101103
(when-let [c (or (specials c)
102104
(maybe-class-from-string c))]

0 commit comments

Comments
 (0)