Skip to content

Commit

Permalink
(multi-os-engine/multi-os-engine#162) Allow duplicated program class
Browse files Browse the repository at this point in the history
  • Loading branch information
Noisyfox committed Jan 23, 2022
1 parent c308813 commit 91bb059
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/proguard/io/ClassDataEntryWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ public OutputStream createOutputStream(DataEntry dataEntry) throws IOException
}

// Get the output stream for this input entry.
OutputStream outputStream = dataEntryWriter.createOutputStream(dataEntry);
OutputStream outputStream;
try {
// MOE: allow duplicated program class
outputStream = dataEntryWriter.createOutputStream(dataEntry);
} catch (IOException ex) {
System.err.println("Warning: can't write class [" + dataEntry.getName() + "] (" + ex.getMessage() + ")");
outputStream = null;
}
if (outputStream != null)
{
// Write the class to the output stream.
Expand Down

0 comments on commit 91bb059

Please sign in to comment.